package com.estar.integaration.Impl.paymentPlanimpl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.estar.integaration.Mapper.paymentPlanMapper.PaymentPlanHistoryMapper;
import com.estar.integaration.Service.paymentPlanService.IPaymentPlanHistoryService;
import com.estar.integaration.entity.paymentPlanEntity.PaymentPlanHistory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author YJL
 * @since 2022-03-29
 */
@Service
public class PaymentPlanHistoryServiceImpl extends ServiceImpl<PaymentPlanHistoryMapper, PaymentPlanHistory> implements IPaymentPlanHistoryService {


  @Autowired
  PaymentPlanHistoryMapper paymentPlanHistoryMapper;

  @Override
  public List<PaymentPlanHistory> getHistoryByType(String type) {
    QueryWrapper queryWrapper = new QueryWrapper();
    queryWrapper.eq("type",type);
    List<PaymentPlanHistory> paymentPlanHistoryList = paymentPlanHistoryMapper.selectList(queryWrapper);
    return paymentPlanHistoryList;
  }
}
